<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/1
  Time: 9:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName()
			+ ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
	<title>管理员登陆页</title>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>MainHtml</title>
	<link href="<%=basePath%>Css/button.css" rel="stylesheet" type="text/css" />
	<!-- Bootstrap Core CSS -->
	<link href="<%=basePath%>Css/bootstrap.min.css" rel="stylesheet" />
	<link href="<%=basePath%>Css/dataTables.bootstrap.css" rel="stylesheet" />
	<link href="<%=basePath%>Css/metisMenu.min.css" rel="stylesheet" />
	<!-- 引入js文件 -->
	<!-- jQuery -->
	<script src="<%=basePath%>js/jquery-1.11.3.min.js"></script>
	<!-- Bootstrap Core JavaScript -->
	<script src="<%=basePath%>js/bootstrap.min.js"></script>
	<!-- Metis Menu Plugin JavaScript -->
	<script src="<%=basePath%>js/metisMenu.min.js"></script>
	<!-- DataTables JavaScript -->
	<script src="<%=basePath%>js/jquery.dataTables.min.js"></script>
	<script src="<%=basePath%>js/dataTables.bootstrap.min.js"></script>

	<!-- Custom Theme JavaScript -->
	<script src="<%=basePath%>js/sb-admin-2.js"></script>
	<script type="text/JavaScript">
		// 判断是登录账号和密码是否为空
		function check(){
			var userCode = $("#userCode").val();
			var password = $("#password").val();
			if(userCode=="" || password==""){
				$("#message").text("账号或密码不能为空！");
				return false;
			}
			return true;
		}
	</script>
</head>



<body leftMargin=0 topMargin=0 marginwidth="0" marginheight="0"
	  background="<%=basePath%>/Images/welcome.jpg"  background-repeat:no-repeat>
<div style=" margin:0; height:100%;
  background-color:rgba(0,0,0,0.5);" >
	<div class="container-fluid">
		<div class="col-md-7">
		</div>
		<div class="col-md-4">
			<div class="panel panel-primary" style="margin-top: 150px">
				<div class="panel-heading">管理员登录</div>
				<div class="panel-body">

					<form class="form-horizontal" action="/login.action" method="post"  onsubmit="return check()">
						<div class="form-group">
							<label for="userCode" class="col-sm-2 control-label">账&nbsp;号</label>
							<div class="col-sm-10">

								<input input id="userCode"  class="form-control" type="text" name="userCode" placeholder="请输入账号">
							</div>
						</div>
						<div class="form-group">
							<label for="password" class="col-sm-2 control-label">密码</label>
							<div class="col-sm-10">
								<input type="password" class="form-control" id="password" name="password"
									   placeholder="请输入密码">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<div class="checkbox">
									<label>
										<input type="checkbox"> 请记住我
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-default">登录</button>
							</div>
						</div>
					</form>






				</div>
			</div>

		</div>
		<div class="col-md-1"></div>
	</div>




</div>
</body>
</html>


